package com.example.demo.domain;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.example.demo.common.BaseEntity;
import lombok.Data;

@Data
@Table(name = "country")
public class Country extends BaseEntity {
    @Column(name = "country_name")
    private String countryName;

    @Column(name = "country_code")
    private String countryCode;

    public String getCountryName() {
        return countryName;
    }

    public void setCountryName(String countryName) {
        this.countryName = countryName == null ? null : countryName.trim();
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

}